﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Bas;
using nERP.Model;

namespace nERP.ViewModel.Bas.GoodsClassVMs
{
    public partial class GoodsClassTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._GoodsClass._Name")]
        public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<GoodsClass>(x => x.Name);
        [Display(Name = "_Model._GoodsClass._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<GoodsClass>(x => x.Remark);
        //[Display(Name = "_Model._GoodsClass._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<GoodsClass>(x => x.CreateTime, true);
        //[Display(Name = "_Model._GoodsClass._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<GoodsClass>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._GoodsClass._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<GoodsClass>(x => x.CreateBy);
        //[Display(Name = "_Model._GoodsClass._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<GoodsClass>(x => x.UpdateBy);
        //[Display(Name = "_Model._GoodsClass._IsValid")]
        //public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<GoodsClass>(x => x.IsValid);
        //[Display(Name = "_Model._GoodsClass._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<GoodsClass>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class GoodsClassImportVM : BaseImportVM<GoodsClassTemplateVM, GoodsClass>
    {
            //import

    }

}